3D Graphics Programming with QuickDraw 3D 1.5.4
Previous | QD3D Book | Overview | Chapter Contents | Next |
A top cap attribute set is used to attach attributes to the top cap of a cylinder that has an optional top cap. The attributes to be assigned to the cap are placed in a regular attribute set in the usual manner. Then the container holding the regular attribute set and the attributes is placed in the cap attribute set by including that container and the cap attribute set in a further container.
The attributes associated with a top cap attribute set are not drawn if the parent object lacks a top cap.
Container (
Cylindner ( ... )
Caps ( Top )
Container (
TopCapAttributeSet ( )
Container (
AttributeSet ( )
DiffuseColor ( 0.2 0.9 0.4 )
)
)
)
Previous | QD3D Book | Overview | Chapter Contents | Next |